/*
 * @Author: FanWeiHua
 * @Date: 2021-07-29 11:31:34
 * @LastEditTime: 2021-07-30 16:31:54
 * @Description:
 */
import { createApp, ref, onUnmounted } from 'vue/dist/vue.esm-bundler.js';
export const createAppCom = {
  setup() {
    const count = ref(1);
    onUnmounted(() => {
      console.log('卸载');
    });
    return {
      count
    };
  },
  template: `1234<button-counter></button-counter>`
};
export const create = createApp;
export const component = {
  setup() {
    const count = ref(0);
    return {
      count
    };
  },
  template: `
    <button @click="count++">
      You clicked me {{ count }} times.
    </button>`
};
